package com.tzb.order.feign;

import com.tzb.order.entity.Product;
import org.springframework.stereotype.Component;


@Component
public class ProductFeignClientCallback implements IProductFeignClient {

    /**
     * 熔断降级的方法
     *
     * @param id
     * @return
     */
    @Override
    public Product findById(Long id) {
        Product product = new Product();
        product.setProductName("feign 调用触发了熔断降级的方法");
        return product;
    }
}
